/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.snda.lidejia.jobflow.task;

import com.snda.lidejia.jobflow.exception.JobFlowException;

/**
 *
 * @author lidejia
 */
public abstract class TaskHandler<I, O> {

    private Task task = null;

    public void setTask(Task task) {
        this.task = task;
    }

    protected String getParam(String key) {
        return task.getParam(key);
    }

    public abstract TaskData<O> handler(TaskData<I> inputs) throws JobFlowException;
}
